home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.02 Feb 91 / Jorg Source / MacTutorGrow.h < prev   
Encoding:
Text File  |  1989-11-20  |  914 b   |  29 lines  |  [TEXT/MPS ]

  1. // MacTutorGrow definitions
  2. // subclass of MacTutorDocument that adds scroll, grow and zoom
  3. // and a list of objects to be drawn in the window
  4. #define    rVScroll    128                /* vertical scrollbar control */
  5. #define    rHScroll    129                /* horizontal scrollbar control */
  6. class TMacTutorGrow : public TMacTutorDocument {
  7.     
  8.   private:
  9.     ControlHandle    fDocVScroll;    // vertical scrollbar
  10.     ControlHandle    fDocHScroll;    // horizontal scrollbar
  11.     void AdjustViewRect(void);
  12.     void ResizeWindow(void);
  13.     void AdjustScrollSizes(void);
  14.     void AdjustScrollbars(Boolean needsResize);
  15.     void AdjustScrollValues(Boolean mustRedraw);
  16.     void DrawWindow(void);
  17.     
  18.   public:
  19.     TMacTutorGrow(short resID,StringPtr s);
  20.     ~TMacTutorGrow(void);
  21.     // new methods, override previous ones
  22.     void DoZoom(short partCode);
  23.     void DoGrow(EventRecord* theEvent);
  24.     void DoContent(EventRecord* theEvent);
  25.     void DoUpdate(void);
  26.     void DoActivate(Boolean becomingActive);
  27. };
  28.  
  29.